package com.ifast.oupei.dao;

import com.ifast.oupei.domain.LeagueDO;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.ifast.common.base.BaseDao;

/**
 * 
 * <pre>
 * 联赛信息表
 * </pre>
 * <small> 2018-04-19 10:02:56 | Aron</small>
 */
public interface LeagueDao extends BaseDao<LeagueDO> {
	
	//获取所有联赛的赛季
	List<String> listAllSeaon(String leagueName);
	//获取所有联赛
	List<String> listAllLeagueName();
	//获取所有轮次
	List<LeagueDO> listAllTurn(@Param("leagueName")String leagueName,@Param("season")String season);
	//获取所有轮次
	List<LeagueDO> listAllTurn2(@Param("leagueName")String leagueName,@Param("season")String season,@Param("cupMatchDetail")String cupMatchDetail);
	
	//获取所有联赛
	List<LeagueDO> ListAllLeagueInfo(Pagination page);
	
	//根据联赛名称获取所以的联赛信息
	List<LeagueDO> listLeagueByName(String leagueName);
	//获取默认赛季
	LeagueDO getSeason(String name);
	
}
